Skip to content

fix: treat method references on array/generic types as simple call arguments - #1121

Merged
jtkiesel merged 1 commit into
jhipster:mainfrom
jtkiesel:fix/method-reference-simple-arg
Oct 25, 2026
Merged

jtkiesel merged 1 commit into
jhipster:mainfrom
jtkiesel:fix/method-reference-simple-arg

Conversation

@jtkiesel

Copy link
Copy Markdown
Contributor

What changed with this PR:

Method references on array/generic types are treated as simple call arguments, no longer forcing short member chains containing them to break.

Example

Input

a.b()
  .c()
  .d(E[]::f);

a.b()
  .c()
  .d(e.E[]::f);

a.b()
  .c()
  .d(E<F>::f);

a.b()
  .c()
  .d(e.E<F>::f);

Output

a.b().c().d(E[]::f);

a.b().c().d(e.E[]::f);

a.b().c().d(E<F>::f);

a.b().c().d(e.E<F>::f);

Relative issues or prs:

Closes #1113

@jtkiesel
jtkiesel force-pushed the fix/method-reference-simple-arg branch from 24f3ec6 to 82142f7 Compare October 25, 2026 05:28
@jtkiesel
jtkiesel merged commit 53efafa into jhipster:main Oct 25, 2026
6 checks passed
@jtkiesel
jtkiesel deleted the fix/method-reference-simple-arg branch October 25, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

String[]::new treated as a complex argument, breaking member chains

1 participant